<extend name="Public/common" />
<block name="body">

<script type="text/javascript" src="__JS__/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="__JS__/jquery.mousewheel.js"></script>

<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>系统信息</h3>
    </div>
  </div>
  <div class="fixed-empty"></div>
  <div class="info-panel">
    <dl class="member">
      <dt>
        <div class="ico"><i></i><sub title="会员总数"><span><em id="statistics_member"></em></span></sub></div>
        <h3>会员</h3>
        <h5>新增会员</h5>
      </dt>
      <dd>
        <ul>
          <li class="w50pre normal"><a href="/admin/member/index/">本周新增<sub><em id="statistics_week_add_member">0</em></sub></a></li>
          <li class="w50pre none"><a href="/admin/member/index/">本月新增<sub><em id="statistics_month_add_member">0</em></sub></a></li>
        </ul>
      </dd>
    </dl>
    <dl class="shop">
      <dt>
        <div class="ico"><i></i><sub title="新增店铺数"><span><em id="statistics_store"></em></span></sub></div>
        <h3>店铺</h3>
        <h5>新开店铺审核</h5>
      </dt>
      <dd>
        <ul>
          <li class="w100pre none"><a href="/admin/store/index/">本月新增店铺<sub><em id="statistics_month_add_store">0</em></sub></a></li>
        </ul>
      </dd>
    </dl>
    <dl class="goods">
      <dt>
        <div class="ico"><i></i><sub title="商品总数"><span><em id="statistics_goods"></em></span></sub></div>
        <h3>商品</h3>
        <h5>本月新增商品</h5>
      </dt>
      <dd>
        <ul>
          <li class="w100pre normal"><a href="/admin/goods/index/">本月新增商品<sub title="本月新增商品"><em id="statistics_month_add_goods"></em></sub></a></li>
        </ul>
      </dd>
    </dl>
    <dl class="trade">
      <dt>
        <div class="ico"><i></i><sub title="订单总数"><span><em id="statistics_order"></em></span></sub></div>
        <h3>订单</h3>
        <h5>本周新增订单</h5>
      </dt>
      <dd>
        <ul>
          <li class="w33pre none"><a href="/admin/order/index/">本月新增<sub><em id="statistics_week_add_order"></em></sub></a></li>
          <li class="w33pre none"><a href="/admin/order/index/">本周新增<sub><em id="statistics_month_add_order"></em></sub></a></li>
          <li class="w33pre none"><a href="/admin/order/index/" title="完成交易的订单总额">交易总额<sub><em id="statistics_order_amount">0</em></sub></a></li>
        </ul>
      </dd>
    </dl>
    <dl class="operation">
      <dt>
        <div class="ico"><i></i></div>
        <h3>知识</h3>
        <h5>文章总数/视频总数</h5>
      </dt>
      <dd>
        <ul>
           <li class="w50pre normal"><a href="/admin/member/index/">文章总数<sub><em id="statistics_article">0</em></sub></a></li>
          <li class="w50pre none"><a href="/admin/member/index/">视频总数<sub><em id="statistics_video">0</em></sub></a></li>
        </ul>
      </dd>
    </dl>
    <dl class="system">
      <dt>
        <div class="ico"><i></i><a id="UPDATE" style="visibility:hidden;" title="" target="_blank" href="javascript:void(0);"><sub><span>new</em></span></sub></a></div>
        <h3>系统信息</h3>
        <div id="system-info">
          <ul>
          <volist name="info" id="vo">
            <li>{$key} : <span>{$vo}</span></li>
          </volist>  
          </ul>
        </div>
      </dt>
      <dd>
        <ul>
          <li class="w50pre none"><a href="#" target="_blank">官方网站<sub></sub></a></li>
          <li class="w50pre none"><a href="#" target="_blank">官方论坛<sub></sub></a></li>
        </ul>
      </dd>
    </dl>
    <div class=" clear"></div>
  </div>
</div>
<script type="text/javascript">
var normal = ['week_add_member','month_add_goods'];
var work = ['month_add_member','month_add_store','goods','store','month_add_store','order','week_add_order','month_add_order','order_amount', 'article','video'];
$(document).ready(function(){
	$.getJSON("{:U('admin/index/dashboard')}", function(data){
	  $.each(data, function(k,v){
		  $("#statistics_"+k).html(v);
		  if (v!= 0 && $.inArray(k,work) !== -1){
			$("#statistics_"+k).parent().parent().parent().removeClass('none').addClass('high');
		  }else if (v == 0 && $.inArray(k,normal) !== -1){
			$("#statistics_"+k).parent().parent().parent().removeClass('normal').addClass('none');
		  }
	  });
	});
	$('#system-info').perfectScrollbar();
});
</script>
</block>
